package shejimoshi.observer1;

public class Test {
    public static  void main(String[] args) {
        GuPiao gp = new GuPiao();
        GuMing g1 = new GuMing("孙悟空");
        GuMing g2 = new GuMing("zhubajie");
        GuMing g3 = new GuMing("唐僧");
        gp.addObserver(g1);
        gp.addObserver(g2);
        gp.addObserver(g3);
        gp.setPrice(23.5);
    }

}
